package com.yicong.ants.bean.global;

/**
 * @author cchao
 * @version 2019-07-29.
 */
public class VersionBean {

    /**
     * explain : 游玩前一天12:00之前可在线取消预约，无需拨打客服取消
     * version : 1.2.3
     * downurl : http://app.yytxlyw.com/uploads/20190423/d72d35b78167da03573d26bdbc299fb9.apk
     * is_update : 1
     * is_forced_update : 1
     */

    private String explain;
    private String version;
    private String url;
    private int update;
    private int forced_update;

    public VersionBean() {
    }

    public boolean isForcedUpdate() {
        return forced_update == 1;
    }

    public String getExplain() {
        return this.explain;
    }

    public String getVersion() {
        return this.version;
    }

    public String getUrl() {
        return this.url;
    }

    public int getUpdate() {
        return this.update;
    }

    public int getForced_update() {
        return this.forced_update;
    }

    public void setExplain(String explain) {
        this.explain = explain;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void setUpdate(int update) {
        this.update = update;
    }

    public void setForced_update(int forced_update) {
        this.forced_update = forced_update;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof VersionBean)) return false;
        final VersionBean other = (VersionBean) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$explain = this.getExplain();
        final Object other$explain = other.getExplain();
        if (this$explain == null ? other$explain != null : !this$explain.equals(other$explain))
            return false;
        final Object this$version = this.getVersion();
        final Object other$version = other.getVersion();
        if (this$version == null ? other$version != null : !this$version.equals(other$version))
            return false;
        final Object this$url = this.getUrl();
        final Object other$url = other.getUrl();
        if (this$url == null ? other$url != null : !this$url.equals(other$url)) return false;
        if (this.getUpdate() != other.getUpdate()) return false;
        if (this.getForced_update() != other.getForced_update()) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof VersionBean;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $explain = this.getExplain();
        result = result * PRIME + ($explain == null ? 43 : $explain.hashCode());
        final Object $version = this.getVersion();
        result = result * PRIME + ($version == null ? 43 : $version.hashCode());
        final Object $url = this.getUrl();
        result = result * PRIME + ($url == null ? 43 : $url.hashCode());
        result = result * PRIME + this.getUpdate();
        result = result * PRIME + this.getForced_update();
        return result;
    }

    public String toString() {
        return "VersionBean(explain=" + this.getExplain() + ", version=" + this.getVersion() + ", url=" + this.getUrl() + ", update=" + this.getUpdate() + ", forced_update=" + this.getForced_update() + ")";
    }
}
